package com.semp.gu.ui;

import javax.swing.UIManager;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class GalleryUploaderUILauncher {

	public static void main(String[] args) throws Exception {
		UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		
		ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(
				new String[] {
						"classpath:/com/semp/gu/ui/applicationContext.xml",
						"classpath:/com/semp/gu/config/applicationContext.xml",
						"classpath:/com/semp/gu/core/applicationContext.xml",
						"classpath:/com/semp/gu/codec/applicationContext.xml",
						"classpath:/com/semp/gu/blog/mock.applicationContext.xml",
						"classpath:/com/semp/gu/connector/mock.applicationContext.xml"
				});
		
		
		applicationContext.registerShutdownHook();
		
		GalleryUploaderUI mainUI = (GalleryUploaderUI) applicationContext.getBean("mainUI");
		mainUI.init();
	}
}
